package com.cn.jinl.dao;

import com.cn.jinl.domain.ProcureStorage;
import com.cn.jinl.domain.ProcureStorageExample;
import java.util.List;

import com.cn.jinl.utils.QueryForm;
import org.apache.ibatis.annotations.Param;

public interface ProcureStorageMapper {
    int countByExample(ProcureStorageExample example);

    int deleteByExample(ProcureStorageExample example);

    int insert(ProcureStorage record);

    int insertSelective(ProcureStorage record);

    int selectProcureStorageListCount(QueryForm queryForm);
    List<ProcureStorage> selectProcureStorageList(QueryForm queryForm);

    List<ProcureStorage> selectProcureLeftStorage();
    List<ProcureStorage> selectProcureStorageByProcureId(String id);
    List<ProcureStorage> selectProcureStorageListByMaterialCode(QueryForm queryForm);

    List<ProcureStorage> selectProcureStorageCount();

    int batchInsertProcureStorages(@Param("itemList") List<ProcureStorage> records);

    List<ProcureStorage> selectByExample(ProcureStorageExample example);
    List<ProcureStorage> selectProcureStorageDetailList(QueryForm queryForm);

    int updateByExampleSelective(@Param("record") ProcureStorage record, @Param("example") ProcureStorageExample example);

    int updateByExample(@Param("record") ProcureStorage record, @Param("example") ProcureStorageExample example);

    int batchUpdateProcureStorageStatus(List<ProcureStorage> procureStorageList);
}